package com.lft.freshordering.service;


import com.lft.freshordering.entity.Goods;
import com.lft.freshordering.entity.Stypes;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tyhxzy
 * @since 2024-12-02
 */
//我的代码
public interface IStypesService {
    //查询所有分类
    List<Stypes> selectAll();
    //查询所有分类商品
    List<Goods> selectByType(Integer id);
    //商品详情
    Goods selectByName(String name);

    //查询所有商品
    List<Goods> selectAllGoods();

//搜索框查询
    List<Goods>sou(String goodsName);




    List<Stypes> selectList();

//    int updatestypes(Stypes stypes);

    int deletestypes(Integer id);

    List<Stypes> selectstypess();

    int updatestypes(Stypes stypes);


    int insertstypes(String tname);

    List<Goods> selectGoodsByCategoryId(Integer id);
}
